package cn.iocoder.yudao.module.promotion.linkage21.service;

import cn.iocoder.yudao.framework.business.basic.dao.query.CoreQueryWrapper;
import cn.iocoder.yudao.framework.business.basic.service.CrudService;
import cn.iocoder.yudao.framework.business.basic.service.impl.BaseService;
import cn.iocoder.yudao.module.promotion.linkage21.convert.Linkage21RecordConvert;
import cn.iocoder.yudao.module.promotion.linkage21.dao.Linkage21RecordMapper;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21RecordQueryDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.dto.Linkage21RecordSaveDTO;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.po.Linkage21Record;
import cn.iocoder.yudao.module.promotion.linkage21.pojo.vo.Linkage21RecordVO;
import jakarta.annotation.Nonnull;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * 服务实现类
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/12
 */
@Service
public class Linkage21RecordService extends BaseService<Linkage21Record, Linkage21RecordVO, Linkage21RecordQueryDTO> implements CrudService<Linkage21Record, Linkage21RecordVO, Linkage21RecordSaveDTO, Linkage21RecordQueryDTO> {
    @Resource
    private Linkage21RecordMapper linkage21RecordMapper;

    @Override
    public Linkage21RecordMapper getInjectedMapper() {
        return linkage21RecordMapper;
    }

    @Override
    public Linkage21Record convertToEntity(Linkage21RecordSaveDTO param) {
        return Linkage21RecordConvert.INSTANCE.toEntity(param);
    }

    @Nonnull
    @Override
    protected CoreQueryWrapper<Linkage21Record> buildQueryWrapper(Linkage21RecordQueryDTO param) {
        CoreQueryWrapper<Linkage21Record> wrapper = super.buildQueryWrapper(param);
        // TODO 添加自定义查询条件
        return wrapper;
    }

}
